home *** CD-ROM | disk | FTP | other *** search
/ Aminet 40 / Aminet 40 (2000)(Schatztruhe)[!][Dec 2000].iso / Aminet / dev / lang / Python16_Src.lha / Python16_Source / Makefile < prev    next >
Encoding:
Makefile  |  2000-09-09  |  16.4 KB  |  554 lines

  1. # Generated automatically from Makefile.in by configure.
  2. # Top-level Makefile for Python
  3. # As distributed, this file is called Makefile.in; it is processed
  4. # into the real Makefile by running the script ./configure, which
  5. # replaces things like @spam@ with values appropriate for your system.
  6. # This means that if you edit Makefile, your changes get lost the next
  7. # time you run the configure script.  Ideally, you can do:
  8. #    ./configure
  9. #    make
  10. #    make test
  11. #    make install
  12. # The top-level Makefile invokes make recursively in a number of
  13. # subdirectories (see the SUBDIRS variable below).  If you want to,
  14. # you can invoke make in individual subdirectories.  However, the
  15. # sub-Makefiles are also generated by configure, and the quickest way
  16. # to make sure they are up to date is by running make (or "make
  17. # Makefiles") at the top level.  This is particularly important for
  18. # Modules/Makefile, which has to be regenerated every time you edit
  19. # Modules/Setup.  The python executable is built in the Modules
  20. # directory and then moved to the top-level directory.  The recursive
  21. # makes pass three options to subordinate makes: OPT (a quick way to
  22. # change some compiler options; it usually defaults to -O), prefix and
  23. # exec_prefix (the installation paths).
  24. # If you have a previous version of Python installed that you don't
  25. # want to overwrite, you can use "make altinstall" instead of "make
  26. # install".  This changes the install procedure so it installs the
  27. # Python binary as "python<version>".  The libraries and include files
  28. # are always installed in a subdirectory called "python<version>".
  29. # "make altinstall" does not install the manual page.  If you want to
  30. # make this installation the "official" installation but want to keep
  31. # the old binary around "just in case", rename the installed python
  32. # binary to "python<oldversion>" before running "make install".
  33. # (This only works between different versions, e.g. 1.3 and 1.4 --
  34. # different betas of the same version will overwrite each other in
  35. # installation unless you override the VERSION Make variable.)
  36. # In fact, "make install" or "make bininstall" installs the binary
  37. # as python<version> and makes a hard link to python, so when
  38. # installing a new version in the future, nothing of the current
  39. # version will be lost (except for the man page).
  40. # If recursive makes fail, try invoking make as "make MAKE=make".
  41. # See also the section "Build instructions" in the README file.
  42.  
  43. # Substitutions by configure
  44. VERSION=    1.6
  45. srcdir=        .
  46. CC=        gcc
  47. AR=        ar
  48. RANLIB=        ranlib
  49. DEFS=        -DHAVE_CONFIG_H
  50.  
  51. # Machine-dependent subdirectories
  52. MACHDEP=    linux2
  53.  
  54. # Install prefix for architecture-independent files
  55. prefix=        /usr/local
  56.  
  57. # Install prefix for architecture-dependent files
  58. exec_prefix=    ${prefix}
  59.  
  60. # Expanded directories
  61. BINDIR=        $(exec_prefix)/bin
  62. LIBDIR=        $(exec_prefix)/lib
  63. MANDIR=        $(prefix)/man
  64. INCLUDEDIR=    $(prefix)/include
  65. CONFINCLUDEDIR=    $(exec_prefix)/include
  66. SCRIPTDIR=    $(prefix)/lib
  67.  
  68. # Detailed destination directories
  69. BINLIBDEST=    $(LIBDIR)/python$(VERSION)
  70. LIBDEST=    $(SCRIPTDIR)/python$(VERSION)
  71. INCLUDEPY=    $(INCLUDEDIR)/python$(VERSION)
  72. CONFINCLUDEPY=    $(CONFINCLUDEDIR)/python$(VERSION)
  73. LIBP=        $(LIBDIR)/python$(VERSION)
  74.  
  75. # Symbols used for using shared libraries
  76. SO=        .so
  77. LDSHARED=    gcc -shared
  78. CCSHARED=    -fpic
  79. LINKFORSHARED=    -Xlinker -export-dynamic
  80. DESTSHARED=    $(BINLIBDEST)/lib-dynload
  81.  
  82. # Shell used by make (some versions default to the login shell, which is bad)
  83. SHELL=        /bin/sh
  84.  
  85. # Use ``EXE=.exe'' for Unix emulations on DOS/Windows (e.g. GNUWIN32)
  86. EXE=
  87.  
  88. # Modes for directories, executables and data files created by the
  89. # install process.  Default to group-writable directories but
  90. # user-only-writable for executables and data files.
  91. DIRMODE=    775
  92. EXEMODE=    755
  93. FILEMODE=    644
  94.  
  95. # Portable install script (configure doesn't always guess right)
  96. INSTALL=    ./install-sh -c
  97. INSTALL_PROGRAM=${INSTALL} -m $(EXEMODE)
  98. INSTALL_DATA=    ${INSTALL} -m $(FILEMODE)
  99.  
  100. # Use this to make a link between python$(VERSION) and python in $(BINDIR)
  101. LN=ln
  102.  
  103. # --with-PACKAGE options for configure script
  104. # e.g. --with-readline --with-svr5 --with-solaris --with-thread
  105. # (see README for an explanation)
  106. WITH=        
  107.  
  108. # Compiler options passed to subordinate makes
  109. OPT=        -g -O2
  110.  
  111. # Subdirectories where to run make recursively
  112. SUBDIRS=    Parser Objects Python Modules
  113.  
  114. # Other subdirectories
  115. SUBDIRSTOO=    Include Lib Misc Demo Grammar
  116.  
  117. # Files and directories to be distributed
  118. CONFIGFILES=    configure configure.in acconfig.h config.h.in Makefile.in
  119. DISTFILES=    README ChangeLog $(CONFIGFILES)
  120. DISTDIRS=    $(SUBDIRS) $(SUBDIRSTOO) Ext-dummy
  121. DIST=        $(DISTFILES) $(DISTDIRS)
  122.  
  123. # Compilation flags for getbuildinfo.c only
  124. CFLAGS=        $(OPT) -I. $(DEFS)
  125.  
  126. LIBRARY=    libpython$(VERSION).a
  127. LDLIBRARY=      libpython$(VERSION).a
  128.  
  129. # Default target
  130. all:        $(LIBRARY) python$(EXE) sharedmods
  131.  
  132. # Build the interpreter
  133. python$(EXE):        $(LIBRARY) buildno Modules/python.o
  134.         expr `cat buildno` + 1 >buildno1
  135.         mv -f buildno1 buildno
  136.         $(CC) -c $(CFLAGS) -DBUILD=`cat buildno` \
  137.               $(srcdir)/Modules/getbuildinfo.c
  138.         $(AR) cr $(LIBRARY) getbuildinfo.o
  139.         $(RANLIB) $(LIBRARY)
  140.         true
  141.         cd Modules;  $(MAKE) OPT="$(OPT)" VERSION="$(VERSION)" \
  142.             prefix="$(prefix)" exec_prefix="$(exec_prefix)" \
  143.             LIBRARY=../$(LDLIBRARY) link
  144.  
  145. Modules/python.o: $(srcdir)/Modules/python.c
  146.         cd Modules; $(MAKE) OPT="$(OPT)" python.o
  147.  
  148. buildno:
  149.         echo 0 >buildno
  150.  
  151. # Build the shared modules
  152. sharedmods:     python$(EXE)
  153.         cd Modules;  $(MAKE) OPT="$(OPT)" VERSION="$(VERSION)" \
  154.             prefix="$(prefix)" exec_prefix="$(exec_prefix)" \
  155.             sharedmods
  156.  
  157. # Build the library
  158. $(LIBRARY):    $(SUBDIRS)
  159.         if test ! -f $(LIBRARY); \
  160.         then for i in $(SUBDIRS); do rm -f $$i/add2lib; done; true; \
  161.         else true; fi
  162.         for i in $(SUBDIRS); do \
  163.             (cd $$i; $(MAKE) VERSION="$(VERSION)" add2lib); done
  164.  
  165. # This rule is only here for DG/UX!!!
  166. libpython$(VERSION).so:    $(LIBRARY)
  167.         case `uname -s | tr -d '/ ' | tr '[A-Z]' '[a-z]'` in \
  168.         *dgux*) \
  169.             test -d dgux || mkdir dgux; \
  170.             (cd dgux;ar x ../$^;ld -G -o ../$@ * ); \
  171.             /bin/rm -rf ./dgux \
  172.             ;; \
  173.         esac
  174.  
  175. # This rule is here for OPENSTEP/Rhapsody/MacOSX
  176. libpython$(VERSION).dylib: $(LIBRARY)
  177.         libtool -o $(LDLIBRARY) -dynamic $(OTHER_LIBTOOL_OPT) $(LIBRARY) -framework System  
  178.  
  179. $(SUBDIRS):    Makefiles
  180.  
  181. Parser:
  182.         cd Parser ; $(MAKE) OPT="$(OPT)" VERSION="$(VERSION)" \
  183.             prefix="$(prefix)" exec_prefix="$(exec_prefix)" all
  184.  
  185. Python:
  186.         cd Python ; $(MAKE) OPT="$(OPT)" VERSION="$(VERSION)" \
  187.             prefix="$(prefix)" exec_prefix="$(exec_prefix)" all
  188.  
  189. Objects:
  190.         cd Objects ; $(MAKE) OPT="$(OPT)" VERSION="$(VERSION)" \
  191.             prefix="$(prefix)" exec_prefix="$(exec_prefix)" all
  192.  
  193. Modules:    Parser Python Objects
  194.         cd Modules ; $(MAKE) OPT="$(OPT)" VERSION="$(VERSION)" \
  195.             prefix="$(prefix)" exec_prefix="$(exec_prefix)" all
  196.  
  197. # Test the interpreter (twice, once without .pyc files, once with)
  198. TESTOPTS=    
  199. TESTPROG=    $(srcdir)/Lib/test/regrtest.py
  200. TESTPYTHON=    ./python$(EXE) -tt
  201. test:        all
  202.         -rm -f $(srcdir)/Lib/test/*.py[co]
  203.         -PYTHONPATH= $(TESTPYTHON) $(TESTPROG) $(TESTOPTS)
  204.         PYTHONPATH= $(TESTPYTHON) $(TESTPROG) $(TESTOPTS)
  205.  
  206. # Install everything
  207. install:    altinstall bininstall maninstall
  208.  
  209. # Install almost everything without disturbing previous versions
  210. altinstall:    altbininstall libinstall inclinstall libainstall sharedinstall
  211.  
  212. # Install the interpreter (by creating a hard link to python$(VERSION))
  213. bininstall:    altbininstall
  214.         -if test -f $(BINDIR)/python$(EXE); \
  215.         then rm -f $(BINDIR)/python$(EXE); \
  216.         else true; \
  217.         fi
  218.         (cd $(BINDIR); $(LN) python$(VERSION)$(EXE) python$(EXE))
  219.  
  220. # Install the interpreter with $(VERSION) affixed
  221. # This goes into $(exec_prefix)
  222. altbininstall:    python$(EXE)
  223.         @for i in $(BINDIR); \
  224.         do \
  225.             if test ! -d $$i; then \
  226.                 echo "Creating directory $$i"; \
  227.                 mkdir $$i; \
  228.                 chmod $(DIRMODE) $$i; \
  229.             else    true; \
  230.             fi; \
  231.         done
  232.         $(INSTALL_PROGRAM) python$(EXE) $(BINDIR)/python$(VERSION)$(EXE)
  233.         if test -f libpython$(VERSION).so; then \
  234.             $(INSTALL_DATA) libpython$(VERSION).so $(LIBDIR); \
  235.         else    true; \
  236.         fi
  237.  
  238. # Install the manual page
  239. maninstall:
  240.         @for i in $(MANDIR) $(MANDIR)/man1; \
  241.         do \
  242.             if test ! -d $$i; then \
  243.                 echo "Creating directory $$i"; \
  244.                 mkdir $$i; \
  245.                 chmod $(DIRMODE) $$i; \
  246.             else    true; \
  247.             fi; \
  248.         done
  249.         $(INSTALL_DATA) $(srcdir)/Misc/python.man \
  250.             $(MANDIR)/man1/python.1
  251.  
  252. # Install the library
  253. PLATDIR=    plat-$(MACHDEP)
  254. MACHDEPS=    $(PLATDIR)
  255. LIBSUBDIRS=    lib-old lib-tk site-packages test test/output encodings \
  256.         distutils distutils/command $(MACHDEPS)
  257. libinstall:    python $(srcdir)/Lib/$(PLATDIR)
  258.         @for i in $(SCRIPTDIR) $(LIBDEST); \
  259.         do \
  260.             if test ! -d $$i; then \
  261.                 echo "Creating directory $$i"; \
  262.                 mkdir $$i; \
  263.                 chmod $(DIRMODE) $$i; \
  264.             else    true; \
  265.             fi; \
  266.         done
  267.         @for d in $(LIBSUBDIRS); \
  268.         do \
  269.             a=$(srcdir)/Lib/$$d; \
  270.             if test ! -d $$a; then continue; else true; fi; \
  271.             b=$(LIBDEST)/$$d; \
  272.             if test ! -d $$b; then \
  273.                 echo "Creating directory $$b"; \
  274.                 mkdir $$b; \
  275.                 chmod $(DIRMODE) $$b; \
  276.             else    true; \
  277.             fi; \
  278.         done
  279.         @for i in $(srcdir)/Lib/*.py $(srcdir)/Lib/*.doc; \
  280.         do \
  281.             if test -x $$i; then \
  282.                 $(INSTALL_PROGRAM) $$i $(LIBDEST); \
  283.                 echo $(INSTALL_PROGRAM) $$i $(LIBDEST); \
  284.             else \
  285.                 $(INSTALL_DATA) $$i $(LIBDEST); \
  286.                 echo $(INSTALL_DATA) $$i $(LIBDEST); \
  287.             fi; \
  288.         done
  289.         @for d in $(LIBSUBDIRS); \
  290.         do \
  291.             a=$(srcdir)/Lib/$$d; \
  292.             if test ! -d $$a; then continue; else true; fi; \
  293.             b=$(LIBDEST)/$$d; \
  294.             for i in $$a/*; \
  295.             do \
  296.                 case $$i in \
  297.                 *CVS) ;; \
  298.                 *.py[co]) ;; \
  299.                 *~) ;; \
  300.                 *) \
  301.                     if test -d $$i; then continue; fi; \
  302.                     if test -x $$i; then \
  303.                         echo $(INSTALL_PROGRAM) $$i $$b; \
  304.                         $(INSTALL_PROGRAM) $$i $$b; \
  305.                     else \
  306.                         echo $(INSTALL_DATA) $$i $$b; \
  307.                         $(INSTALL_DATA) $$i $$b; \
  308.                     fi;; \
  309.                 esac; \
  310.             done; \
  311.         done
  312.         PYTHONPATH=$(LIBDEST) \
  313.             ./python$(EXE) -t $(LIBDEST)/compileall.py $(LIBDEST)
  314.         PYTHONPATH=$(LIBDEST) \
  315.             ./python$(EXE) -O $(LIBDEST)/compileall.py $(LIBDEST)
  316.  
  317. # Create the PLATDIR source directory, if one wasn't distributed..
  318. $(srcdir)/Lib/$(PLATDIR):
  319.         mkdir $(srcdir)/Lib/$(PLATDIR)
  320.         cp $(srcdir)/Lib/plat-generic/regen $(srcdir)/Lib/$(PLATDIR)/regen
  321.         export PATH; PATH="`pwd`:$$PATH"; \
  322.         export PYTHONPATH; PYTHONPATH="`pwd`/Lib"; \
  323.         cd $(srcdir)/Lib/$(PLATDIR); ./regen
  324.  
  325. # Install the include files
  326. INCLDIRSTOMAKE=$(INCLUDEDIR) $(CONFINCLUDEDIR) $(INCLUDEPY) $(CONFINCLUDEPY)
  327. inclinstall:
  328.         @for i in $(INCLDIRSTOMAKE); \
  329.         do \
  330.             if test ! -d $$i; then \
  331.                 echo "Creating directory $$i"; \
  332.                 mkdir $$i; \
  333.                 chmod $(DIRMODE) $$i; \
  334.             else    true; \
  335.             fi; \
  336.         done
  337.         @for i in $(srcdir)/Include/*.h; \
  338.         do \
  339.             echo $(INSTALL_DATA) $$i $(INCLUDEPY); \
  340.             $(INSTALL_DATA) $$i $(INCLUDEPY); \
  341.         done
  342.         $(INSTALL_DATA) config.h $(CONFINCLUDEPY)/config.h
  343.  
  344. # Install the library and miscellaneous stuff needed for extending/embedding
  345. # This goes into $(exec_prefix)
  346. LIBPL=        $(LIBP)/config
  347. libainstall:    all
  348.         @for i in $(LIBDIR) $(LIBP) $(LIBPL); \
  349.         do \
  350.             if test ! -d $$i; then \
  351.                 echo "Creating directory $$i"; \
  352.                 mkdir $$i; \
  353.                 chmod $(DIRMODE) $$i; \
  354.             else    true; \
  355.             fi; \
  356.         done
  357.         @if [ "$(MACHDEP)" != "beos" ] ; then \
  358.             $(INSTALL_DATA) $(LIBRARY) $(LIBPL)/$(LIBRARY) ; \
  359.             $(RANLIB) $(LIBPL)/$(LIBRARY) ; \
  360.         fi
  361.         $(INSTALL_DATA) Modules/config.c $(LIBPL)/config.c
  362.         $(INSTALL_DATA) Modules/python.o $(LIBPL)/python.o
  363.         $(INSTALL_DATA) $(srcdir)/Modules/config.c.in $(LIBPL)/config.c.in
  364.         $(INSTALL_DATA) Modules/Makefile $(LIBPL)/Makefile
  365.         $(INSTALL_DATA) Modules/Setup $(LIBPL)/Setup
  366.         $(INSTALL_DATA) Modules/Setup.local $(LIBPL)/Setup.local
  367.         $(INSTALL_DATA) Modules/Setup.thread $(LIBPL)/Setup.thread
  368.         $(INSTALL_PROGRAM) $(srcdir)/Modules/makesetup $(LIBPL)/makesetup
  369.         $(INSTALL_PROGRAM) $(srcdir)/install-sh $(LIBPL)/install-sh
  370.         $(INSTALL_DATA) $(srcdir)/Misc/Makefile.pre.in $(LIBPL)/Makefile.pre.in
  371.         @if [ -s Modules/python.exp -a \
  372.             "`echo $(MACHDEP) | sed 's/^\(...\).*/\1/'`" = "aix" ]; then \
  373.             echo; echo "Installing support files for building shared extension modules on AIX:"; \
  374.             $(INSTALL_DATA) Modules/python.exp        \
  375.                     $(LIBPL)/python.exp;        \
  376.             echo; echo "$(LIBPL)/python.exp";        \
  377.             $(INSTALL_PROGRAM) $(srcdir)/Modules/makexp_aix    \
  378.                     $(LIBPL)/makexp_aix;        \
  379.             echo "$(LIBPL)/makexp_aix";            \
  380.             $(INSTALL_PROGRAM) $(srcdir)/Modules/ld_so_aix    \
  381.                     $(LIBPL)/ld_so_aix;        \
  382.             echo "$(LIBPL)/ld_so_aix";            \
  383.             echo; echo "See Misc/AIX-NOTES for details.";    \
  384.         else true; \
  385.         fi
  386.  
  387. # Install the dynamically loadable modules
  388. # This goes into $(exec_prefix)
  389. sharedinstall:
  390.         cd Modules; $(MAKE) \
  391.             OPT="$(OPT)" \
  392.             VERSION="$(VERSION)" \
  393.             SO="$(SO)" \
  394.             LDSHARED="$(LDSHARED)" \
  395.             CCSHARED="$(CCSHARED)" \
  396.             LINKFORSHARED="$(LINKFORSHARED)" \
  397.             DESTSHARED="$(DESTSHARED)" \
  398.             prefix="$(prefix)" \
  399.             exec_prefix="$(exec_prefix)" \
  400.             sharedinstall
  401.  
  402. # Build the sub-Makefiles
  403. Makefiles:    config.status Modules/Makefile.pre
  404.         (cd Modules; $(MAKE) -f Makefile.pre Makefile)
  405.         @for i in . $(SUBDIRS); do \
  406.             (echo making Makefile in subdirectory $$i; cd $$i; \
  407.              $(MAKE) Makefile); \
  408.         done
  409.         -(rm -f Modules/hassignal; cd Modules; $(MAKE) hassignal)
  410.  
  411. # Build the intermediate Makefile in Modules
  412. Modules/Makefile.pre: config.status
  413.         $(SHELL) config.status
  414.  
  415. # Build the toplevel Makefile
  416. Makefile:    Makefile.in config.status
  417.         CONFIG_FILES=Makefile CONFIG_HEADERS= $(SHELL) config.status
  418.  
  419. # Run the configure script.  If config.status already exists,
  420. # call it with the --recheck argument, which reruns configure with the
  421. # same options as it was run last time; otherwise run the configure
  422. # script with options taken from the $(WITH) variable
  423. config.status:    $(srcdir)/configure
  424.         if test -f config.status; \
  425.         then $(SHELL) config.status --recheck; \
  426.              $(SHELL) config.status; \
  427.         else $(SHELL) $(srcdir)/configure $(WITH); \
  428.         fi
  429.  
  430. .PRECIOUS:    config.status python$(EXE)
  431.  
  432. # Rerun configure with the same options as it was run last time,
  433. # provided the config.status script exists
  434. recheck:
  435.         $(SHELL) config.status --recheck
  436.         $(SHELL) config.status
  437.  
  438. # Rebuild the configure script from configure.in; also rebuild config.h.in
  439. autoconf:
  440.         (cd $(srcdir); autoconf)
  441.         (cd $(srcdir); autoheader)
  442.  
  443. # Create a tags file for vi
  444. tags::
  445.         ctags -w -t Include/*.h
  446.         for i in $(SUBDIRS); do ctags -w -t -a $$i/*.[ch]; done
  447.         sort tags -o tags
  448.  
  449. # Create a tags file for GNU Emacs
  450. TAGS::
  451.         etags Include/*.h
  452.         for i in $(SUBDIRS); do etags -a $$i/*.[ch]; done
  453.  
  454. # Add dependencies to sub-Makefiles
  455. depend:
  456.         @for i in $(SUBDIRS); do \
  457.             (echo making depend in subdirectory $$i; cd $$i; \
  458.              $(MAKE) depend); \
  459.         done
  460.  
  461. # Sanitation targets -- clean leaves libraries, executables and tags
  462. # files, which clobber removes those as well
  463.  
  464. localclean:
  465.         -rm -f core *~ [@,#]* *.old *.orig *.rej
  466.  
  467. clean:        localclean
  468.         -for i in $(SUBDIRS); do \
  469.             if test -d $$i; then \
  470.             (echo making clean in subdirectory $$i; cd $$i; \
  471.              if test -f Makefile; \
  472.              then $(MAKE) clean; \
  473.              else $(MAKE) -f Makefile.*in clean; \
  474.              fi); \
  475.             else true; fi; \
  476.         done
  477.  
  478. localclobber:    localclean
  479.         -rm -f tags TAGS python$(EXE) $(LIBRARY) $(LDLIBRARY) *.o
  480.         -rm -f config.log config.cache config.h
  481.  
  482. clobber:    localclobber
  483.         -for i in $(SUBDIRS); do \
  484.             if test -d $$i; then \
  485.             (echo clobbering subdirectory $$i; cd $$i; \
  486.              if test -f Makefile; \
  487.              then $(MAKE) clobber; \
  488.              else $(MAKE) -f $(srcdir)/Makefile*.in clobber; \
  489.              fi); \
  490.             else true; fi; \
  491.         done
  492.  
  493. # Make things extra clean, before making a distribution:
  494. # remove all generated files, even Makefile[.pre]
  495. distclean:    clobber
  496.         -$(MAKE) -f $(srcdir)/Makefile.in \
  497.             SUBDIRS="$(SUBDIRSTOO)" clobber
  498.         -rm -f config.status config.log config.cache config.h Makefile
  499.         -rm -f buildno
  500.         -rm -f Modules/Makefile
  501.         -for i in $(SUBDIRS) $(SUBDIRSTOO); do \
  502.              for f in $$i/*.in; do \
  503.                 f=`basename "$$f" .in`; \
  504.                  if test "$$f" != "*"; then \
  505.                     echo rm -f "$$i/$$f"; \
  506.                      rm -f "$$i/$$f"; \
  507.                 fi; \
  508.              done; \
  509.         done
  510.  
  511. # Check for smelly exported symbols (not starting with Py/_Py)
  512. smelly: all
  513.     for i in $(SUBDIRS); do \
  514.         echo --- $$i ---; \
  515.         nm -p $$i/lib$$i.a | \
  516.         sed -n "/ [TDB] /s/.* //p" | grep -v "^_*Py" | sort -u; \
  517.     done
  518.  
  519. # Find files with funny names
  520. funny:
  521.         find $(DISTDIRS) -type d \
  522.             -o -name '*.[chs]' \
  523.             -o -name '*.py' \
  524.             -o -name '*.doc' \
  525.             -o -name '*.sty' \
  526.             -o -name '*.bib' \
  527.             -o -name '*.dat' \
  528.             -o -name '*.el' \
  529.             -o -name '*.fd' \
  530.             -o -name '*.in' \
  531.             -o -name '*.tex' \
  532.             -o -name '*,[vpt]' \
  533.             -o -name 'Setup' \
  534.             -o -name 'Setup.*' \
  535.             -o -name README \
  536.             -o -name Makefile \
  537.             -o -name ChangeLog \
  538.             -o -name Repository \
  539.             -o -name Root \
  540.             -o -name Entries \
  541.             -o -name Tag \
  542.             -o -name tags \
  543.             -o -name TAGS \
  544.             -o -name .cvsignore \
  545.             -o -name MANIFEST \
  546.             -o -print
  547.